﻿$def with (articles)
$var title: manage

<script type="text/javascript">

function clr()
{
    if (confirm("删了就一无所有啦！"))
    {
        return "/clear";
    }
    return "/manage";
}

function del(id)
{
    if (confirm("点确定删掉，或者点取消保留；你是点确定还是点取消全取决于你自己我不可能帮你做决定你真的要确定吗你真的想好了吗"))
    {
        return "/delete/"+id;
    }
    return "/manage";
}
</script>

<div id="content" class="narrowcolumn">

<a href="/clear" onClick="this.href=clr()">玉石俱焚</a>
<ul>
$for article in articles:
    <li class="admin-published">
    $article.published_when.strftime("%H:%M:%S %m-%d-%Y") &nbsp;
    $article.title
    <a href="/edit/$article.id">再改改吧</a>
    <a href="/delete/$article.id" onClick="this.href=del($article.id)">看着不爽？点击我</a>
</ul>
</div>
